package com.cy.demo523.untitled2.src.com.cy.lmpl;

import com.cy.demo523.untitled2.src.com.cy.entity.Student;

import java.sql.SQLException;

public class StudentServiceimp extends StudentService {

    private StudentDao studentDao;

    public StudentServiceimp() throws ClassNotFoundException, SQLException {
        this.studentDao = new StudentDaolmpl();
    }

    @Override
    public int add(Student student) throws SQLException, ClassNotFoundException {
        return studentDao.add(student);
    }
}